/*
 * @Description: 
 * @Author: wangqi
 * @Date: 2024-08-15 21:24:27
 * @LastEditTime: 2024-08-25 10:45:56
 * @LastEditAuthor: wangqi
 */
import { Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { Env } from './enum/env';

@Injectable()
export class AppService {
  constructor(private configService: ConfigService) {}

  getHello(): string {
    const mysql = this.configService.get(Env.mysql);
    const port = this.configService.get(Env.port);
    const title = this.configService.get(Env.title);
    return `app 读取 dotenv模式 模块数据库地址：${mysql}:${port} -${title}`;
  }
}
